package cn.quicklydoit.entity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.eclipse.microprofile.openapi.annotations.media.Schema;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDate;

@Getter
@Setter
@NoArgsConstructor
@Entity
@Table(name = "x_local_file")
@Schema(description = "文件存储")
public class LocalFile {
    @Id
    @Column
    @Schema(title = "unique",name = "id",required = true)
    private Long id;


    @Column
    @Schema(title = "fileSize",name = "文件大小",required = true)
    private Long fileSize;


    @Column
    @Schema(title = "name",name = "文件名称",required = true)
    private String name;

    @Column
    @Schema(title = "uuidName",name = "uuid名称",required = true)
    private String uuidName;


    @Column
    @Schema(title = "createdDate",name = "文件创建时间",required = true)
    private LocalDate createdDate;

    @Column
    @Schema(title = "localUrl",name = "文件存储地址",required = true)
    private String localUrl;


    @Column
    @Schema(title = "fileType",name = "文件格式",required = true)
    private String fileType;

}
